﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Administrator/Admin.Master" AutoEventWireup="true"
    CodeBehind="EditPhim.aspx.cs" Inherits="HDTuyenChon.Admin.EditPhim" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <h3>
        Phim</h3>
    <asp:GridView CssClass="gridview" ID="GridView1" runat="server" AllowPaging="True" AllowSorting="True"
        AutoGenerateColumns="False" DataKeyNames="ID" DataSourceID="LinqDataSourcePhim">
        <Columns>
            <asp:CommandField ShowDeleteButton="True" ShowEditButton="True" />
            <asp:BoundField DataField="ID" HeaderText="ID" InsertVisible="False" ReadOnly="True"
                SortExpression="ID" />
            <asp:BoundField DataField="MS_Phim" HeaderText="MS_Phim" ReadOnly="True" SortExpression="MS_Phim" />
            <asp:TemplateField HeaderText="MS_Loai" SortExpression="MS_Loai">
                <ItemTemplate>
                    <asp:DropDownList ID="ddlLoaiPhim" runat="server" DataSourceID="LinqDataSourceLoaiPhim"
                        DataTextField="Ten_Loai" DataValueField="Loai_Phim" SelectedValue='<%# Bind("MS_Loai") %>'>
                    </asp:DropDownList>
                </ItemTemplate>
            </asp:TemplateField>
            <%-- <asp:BoundField DataField="MS_Loai" HeaderText="MS_Loai" 
                SortExpression="MS_Loai" />--%>
            <asp:BoundField DataField="Tua_VN" HeaderText="Tua_VN" SortExpression="Tua_VN" />
            <asp:BoundField DataField="Tua_EN" HeaderText="Tua_EN" SortExpression="Tua_EN" />
            <asp:BoundField DataField="Dung_Luong" HeaderText="Dung_Luong" SortExpression="Dung_Luong" />
            <%--<asp:TemplateField HeaderText="LoaiHD" SortExpression="LoaiHD">
                <ItemTemplate>
                    <asp:DropDownList ID="ddlLoaiHD" runat="server" SelectedValue='<%# Eval("LoaiHD") %>'>                                               
                    </asp:DropDownList>
                </ItemTemplate>
            </asp:TemplateField>--%>
           <asp:BoundField DataField="LoaiHD" HeaderText="LoaiHD" SortExpression="LoaiHD" />

            <asp:BoundField DataField="Hinh_Anh" HeaderText="Hinh_Anh" SortExpression="Hinh_Anh" />
            <asp:BoundField DataField="Nam_SX" HeaderText="Nam_SX" SortExpression="Nam_SX" />
            <asp:BoundField DataField="Quoc_Gia" HeaderText="Quoc_Gia" SortExpression="Quoc_Gia" />
            <asp:BoundField DataField="NgayDelete" HeaderText="NgayDelete" SortExpression="NgayDelete"
                Visible="False" />
            <asp:BoundField DataField="NgayInsert" HeaderText="NgayInsert" SortExpression="NgayInsert"
                Visible="False" />
            <asp:BoundField DataField="NguoiInsert" HeaderText="NguoiInsert" SortExpression="NguoiInsert"
                Visible="False" />
            <asp:BoundField DataField="NgayUpdate" HeaderText="NgayUpdate" SortExpression="NgayUpdate"
                Visible="False" />
            <asp:BoundField DataField="NguoiUpdate" HeaderText="NguoiUpdate" SortExpression="NguoiUpdate"
                Visible="False" />
        </Columns>
    </asp:GridView>
    <asp:LinqDataSource ID="LinqDataSourcePhim" runat="server" ContextTypeName="HDTuyenChon.AppCode.HDFilmDataContext"
        EnableDelete="True" EnableInsert="True" EnableUpdate="True" EntityTypeName=""
        OrderBy="ID desc" TableName="Phims">
    </asp:LinqDataSource>
    <asp:LinqDataSource ID="LinqDataSourceLoaiPhim" runat="server" ContextTypeName="HDTuyenChon.AppCode.HDFilmDataContext"
        EntityTypeName="" OrderBy="ID" TableName="LoaiPhims">
    </asp:LinqDataSource>
</asp:Content>
